﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;

namespace DataTier
{
    
    [DataContract(IsReference = true)]
    public class BatteryModel
    {
        
        private string _description;
        private int _batteryModelId;

        #region Constructors

        public BatteryModel(int batteryModelId, string description)
        {
           this._batteryModelId = batteryModelId;
            this._description = description;
        }

        public BatteryModel(int id)
        {
            this._batteryModelId = id;
        }

        #endregion

        #region Properties

        [DataMember]
        public string Description
        {
            get { return _description; }
            set { _description = value; }
        }

        [DataMember]
        public int BatteryModelId
        {
            get { return _batteryModelId; }
            set { _batteryModelId = value; }
        }
        #endregion
    }
}
